package com.foreverwin.mes.lims.model;

import java.io.Serializable;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 储罐储料信息
 * </p>
 *
 * @author Max
 * @since 2020-03-18
 */
public class ItemTank extends Model<ItemTank> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
   @TableId(value = "HANDLE", type = IdType.INPUT)
   private String handle;
    /**
     * 外键
     */
   @TableField("Z_INACTIVE_TIME_BO")
   private String zInactiveTimeBo;
   /**
    * 设备简码
    */
   @TableField("SHORT_CODE")
   private String shortCode;
    /**
     * 设备编号
     */
   @TableField("RESRCE")
   private String resrce;
    /**
     * 设备描述
     */
   @TableField("RESRCE_DESC")
   private String resrceDesc;
    /**
     * 罐子用途
     */
   @TableField("TANK_BY_USE")
   private String tankByUse;
    /**
     * 上限
     */
   @TableField("UPPER_LIMIT")
   private Integer upperLimit;
    /**
     * 下限
     */
   @TableField("LOWER_LIMIT")
   private Integer lowerLimit;
    /**
     * 开始计时时间
     */
   @TableField("START_TIME")
   private Date startTime;
    /**
     * 预计达到下限时间
     */
   @TableField("ESTIMATE_LOWER_TIME")
   private Date estimateLowerTime;
    /**
     * 预计达到上限时间
     */
   @TableField("ESTIMATE_UPPER_TIME")
   private Date estimateUpperTime;
    /**
     * 已呆滞时间
     */
   @TableField("INACTIVE_TIME")
   private BigDecimal inactiveTime;
    /**
     * 罐子物料状态
     */
   @TableField("STATUS")
   private String status;
   /**
    * 罐子状态
    */
   @TableField("TANK_STATUS")
   private String tankStatus;
    /**
     * 累计增加延时
     */
   @TableField("TOTAL_DELAY_TIME")
   private BigDecimal totalDelayTime;
    /**
     * 累计放行次数
     */
   @TableField("RELEASE_NUM")
   private Integer releaseNum;
    /**
     * 结束计时时间
     */
   @TableField("END_TIME")
   private Date endTime;
    /**
     * 创建日期
     */
   @TableField("CREATED_DATE_TIME")
   private Date createdDateTime;
    /**
     * 更新日期
     */
   @TableField("MODIFIED_DATE_TIME")
   private Date modifiedDateTime;


   public String getHandle() {
      return handle;
   }

   public void setHandle(String handle) {
      this.handle = handle;
   }

   public String getzInactiveTimeBo() {
      return zInactiveTimeBo;
   }

   public void setzInactiveTimeBo(String zInactiveTimeBo) {
      this.zInactiveTimeBo = zInactiveTimeBo;
   }

   public String getShortCode() {
      return shortCode;
   }

   public void setShortCode(String shortCode) {
      this.shortCode = shortCode;
   }

   public String getTankStatus() {
      return tankStatus;
   }

   public void setTankStatus(String tankStatus) {
      this.tankStatus = tankStatus;
   }

   public String getResrce() {
      return resrce;
   }

   public void setResrce(String resrce) {
      this.resrce = resrce;
   }

   public String getResrceDesc() {
      return resrceDesc;
   }

   public void setResrceDesc(String resrceDesc) {
      this.resrceDesc = resrceDesc;
   }

   public String getTankByUse() {
      return tankByUse;
   }

   public void setTankByUse(String tankByUse) {
      this.tankByUse = tankByUse;
   }

   public Integer getUpperLimit() {
      return upperLimit;
   }

   public void setUpperLimit(Integer upperLimit) {
      this.upperLimit = upperLimit;
   }

   public Integer getLowerLimit() {
      return lowerLimit;
   }

   public void setLowerLimit(Integer lowerLimit) {
      this.lowerLimit = lowerLimit;
   }

   public Date getStartTime() {
      return startTime;
   }

   public void setStartTime(Date startTime) {
      this.startTime = startTime;
   }

   public Date getEstimateLowerTime() {
      return estimateLowerTime;
   }

   public void setEstimateLowerTime(Date estimateLowerTime) {
      this.estimateLowerTime = estimateLowerTime;
   }

   public Date getEstimateUpperTime() {
      return estimateUpperTime;
   }

   public void setEstimateUpperTime(Date estimateUpperTime) {
      this.estimateUpperTime = estimateUpperTime;
   }

   public BigDecimal getInactiveTime() {
      return inactiveTime;
   }

   public void setInactiveTime(BigDecimal inactiveTime) {
      this.inactiveTime = inactiveTime;
   }

   public String getStatus() {
      return status;
   }

   public void setStatus(String status) {
      this.status = status;
   }

   public BigDecimal getTotalDelayTime() {
      return totalDelayTime;
   }

   public void setTotalDelayTime(BigDecimal totalDelayTime) {
      this.totalDelayTime = totalDelayTime;
   }

   public Integer getReleaseNum() {
      return releaseNum;
   }

   public void setReleaseNum(Integer releaseNum) {
      this.releaseNum = releaseNum;
   }

   public Date getEndTime() {
      return endTime;
   }

   public void setEndTime(Date endTime) {
      this.endTime = endTime;
   }

   public Date getCreatedDateTime() {
      return createdDateTime;
   }

   public void setCreatedDateTime(Date createdDateTime) {
      this.createdDateTime = createdDateTime;
   }

   public Date getModifiedDateTime() {
      return modifiedDateTime;
   }

   public void setModifiedDateTime(Date modifiedDateTime) {
      this.modifiedDateTime = modifiedDateTime;
   }

   public static final String HANDLE = "HANDLE";

   public static final String Z_INACTIVE_TIME_BO = "Z_INACTIVE_TIME_BO";

   public static final String RESRCE = "RESRCE";

   public static final String RESRCE_DESC = "RESRCE_DESC";

   public static final String TANK_BY_USE = "TANK_BY_USE";

   public static final String UPPER_LIMIT = "UPPER_LIMIT";

   public static final String LOWER_LIMIT = "LOWER_LIMIT";

   public static final String START_TIME = "START_TIME";

   public static final String ESTIMATE_LOWER_TIME = "ESTIMATE_LOWER_TIME";

   public static final String ESTIMATE_UPPER_TIME = "ESTIMATE_UPPER_TIME";

   public static final String INACTIVE_TIME = "INACTIVE_TIME";

   public static final String STATUS = "STATUS";

   public static final String TOTAL_DELAY_TIME = "TOTAL_DELAY_TIME";

   public static final String RELEASE_NUM = "RELEASE_NUM";

   public static final String END_TIME = "END_TIME";

   public static final String CREATED_DATE_TIME = "CREATED_DATE_TIME";

   public static final String MODIFIED_DATE_TIME = "MODIFIED_DATE_TIME";

   @Override
   protected Serializable pkVal() {
      return this.handle;
   }

   @Override
   public String toString() {
      return "ItemTank{" +
         "handle = " + handle +
         ", zInactiveTimeBo = " + zInactiveTimeBo +
         ", resrce = " + resrce +
         ", resrceDesc = " + resrceDesc +
         ", tankByUse = " + tankByUse +
         ", upperLimit = " + upperLimit +
         ", lowerLimit = " + lowerLimit +
         ", startTime = " + startTime +
         ", estimateLowerTime = " + estimateLowerTime +
         ", estimateUpperTime = " + estimateUpperTime +
         ", inactiveTime = " + inactiveTime +
         ", status = " + status +
         ", totalDelayTime = " + totalDelayTime +
         ", releaseNum = " + releaseNum +
         ", endTime = " + endTime +
         ", createdDateTime = " + createdDateTime +
         ", modifiedDateTime = " + modifiedDateTime +
         "}";
   }
}